﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="temp.aspx.cs" Inherits="Qvaliz.CAD.Matriculas.temp" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>

    <asp:ObjectDataSource ID="ods_Materiais" runat="server" 
        DeleteMethod="_excluir_Aluno_material" onselecting="ods_Material_Selecting" 
        SelectMethod="_obter_Material" TypeName="Banco.BD_Aluno_material">
        <DeleteParameters>
            <asp:Parameter Name="ALUNO_MATERIAL_ID" Type="String" />
        </DeleteParameters>
        <SelectParameters>
            <asp:Parameter Name="ALUNO_ID" Type="String" />
            <asp:Parameter Name="MATERIAL_ID" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <div>
        <telerik:RadGrid ID="rdg_MaterialAluno" runat="server" 
                                        AllowAutomaticDeletes="True" DataSourceID="ods_Materiais" GridLines="None" 
                                        Skin="Sunset">
                                        <MasterTableView AutoGenerateColumns="False" DataSourceID="ods_Materiais"
                                            ClientDataKeyNames="ALUNO_MATERIAL_ID" DataKeyNames="ALUNO_MATERIAL_ID"> 
                                            <RowIndicatorColumn>
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn>
                                                <HeaderStyle Width="20px" />
                                            </ExpandCollapseColumn>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="ALUNO_MATERIAL_ID" 
                                                    HeaderText="ALUNO_MATERIAL_ID" SortExpression="ALUNO_MATERIAL_ID" 
                                                    UniqueName="ALUNO_MATERIAL_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALUNO_ID" HeaderText="ALUNO_ID" 
                                                    SortExpression="ALUNO_ID" UniqueName="ALUNO_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MATERIAL_ID" HeaderText="MATERIAL_ID" 
                                                    SortExpression="MATERIAL_ID" UniqueName="MATERIAL_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALM_QTADIQUIRIDA" 
                                                    HeaderText="ALM_QTADIQUIRIDA" SortExpression="ALM_QTADIQUIRIDA" 
                                                    UniqueName="ALM_QTADIQUIRIDA">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALM_DTADESAO" HeaderText="ALM_DTADESAO" 
                                                    SortExpression="ALM_DTADESAO" UniqueName="ALM_DTADESAO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALM_STEXCLUIDO" HeaderText="ALM_STEXCLUIDO" 
                                                    SortExpression="ALM_STEXCLUIDO" UniqueName="ALM_STEXCLUIDO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MATERIAL_MODALIDADE_ID" 
                                                    HeaderText="MATERIAL_MODALIDADE_ID" SortExpression="MATERIAL_MODALIDADE_ID" 
                                                    UniqueName="MATERIAL_MODALIDADE_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MMD_DESCRICAO" HeaderText="MMD_DESCRICAO" 
                                                    SortExpression="MMD_DESCRICAO" UniqueName="MMD_DESCRICAO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MTR_DESCRICAO" HeaderText="MTR_DESCRICAO" 
                                                    SortExpression="MTR_DESCRICAO" UniqueName="MTR_DESCRICAO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="PESSOA_ID" HeaderText="PESSOA_ID" 
                                                    SortExpression="PESSOA_ID" UniqueName="PESSOA_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MATRICULAS_ALUNO" 
                                                    HeaderText="MATRICULAS_ALUNO" SortExpression="MATRICULAS_ALUNO" 
                                                    UniqueName="MATRICULAS_ALUNO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="PES_NOME" HeaderText="PES_NOME" 
                                                    SortExpression="PES_NOME" UniqueName="PES_NOME">
                                                </telerik:GridBoundColumn>
                                                <%-- --%>
                                                <telerik:GridButtonColumn ButtonType="ImageButton"  
                                                    CommandName="Delete" ConfirmDialogType="RadWindow"  
                                                    ConfirmText="Deseja realmente excluir este registro"  
                                                    ImageUrl="../Imagens/grid_delete.png" UniqueName="DeleteColumn"  
                                                    ConfirmTitle="Exclusão de registro" Text="Delete"> 
             
                                                    <HeaderStyle HorizontalAlign="Center" Width="18px" /> 
                                                    <ItemStyle HorizontalAlign="Center" Width="18px" /> 
                                                </telerik:GridButtonColumn> 
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>   
    </div>
    </form>
</body>
</html>
